const index = () => import('layouts/index.vue')
const login = () => import('views/login.vue')
const home = () => import('views/home/index.vue')
const personal = () => import('views/personal/index.vue')
// 底部导航菜单
export const bottomRoutes = [
  {
    path: '/home',
    name: 'home',
    component: home,
    icon: 'home-o',
    meta: {
      title: '首页'
    }
  },
  {
    path: '/personal',
    name: 'personal',
    component: personal,
    icon: 'user-o',
    meta: {
      title: '我的'
    }
  }
]
export const routes = [
  {
    path: '/',
    name: 'login',
    component: login,
    meta: {
      title: '登陆'
    }
  },
  {
    path: '/index',
    name: 'index',
    component: index,
    redirect: '/home',
    children: [...bottomRoutes]
  }
]
